|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.texteditor.quickdiff.QuickDiff
Access class for the quick diff reference provider extension point.
Constructor Summary | |
QuickDiff()
Creates a new instance. |
Method Summary | |
IAnnotationModel |
createQuickDiffAnnotationModel(ITextEditor editor,
String id)
Creates a new line differ annotation model with its reference provider set to the reference provider obtained by calling getReferenceProviderOrDefault(editor, id) . |
ReferenceProviderDescriptor |
getDefaultProvider()
Returns the first descriptor with the default attribute set to true . |
List |
getReferenceProviderDescriptors()
Returns a non-modifiable list of ReferenceProviderDescriptor describing all extension
to the quickDiffReferenceProvider extension point. |
IQuickDiffReferenceProvider |
getReferenceProviderOrDefault(ITextEditor editor,
String id)
Returns the quick diff reference provider registered under id , or the default
reference provider. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QuickDiff()
Method Detail |
public ReferenceProviderDescriptor getDefaultProvider()
default
attribute set to true
.
public List getReferenceProviderDescriptors()
ReferenceProviderDescriptor
describing all extension
to the quickDiffReferenceProvider
extension point.
quickDiffReferenceProvider
extension point.public IQuickDiffReferenceProvider getReferenceProviderOrDefault(ITextEditor editor, String id)
id
, or the default
reference provider. The returned provider gets its editor set to editor
. If neither
the requested provider nor the default provider return true
from isEnabled
after
having the editor set, null
is returned.
editor
- the editor to be installed with the returned providerid
- the id as specified in the plugin.xml
that installs the reference provider
id
, or the default reference provider, or null
public IAnnotationModel createQuickDiffAnnotationModel(ITextEditor editor, String id)
getReferenceProviderOrDefault(editor, id)
.
editor
- the editor to be installed with the returned providerid
- the id as specified in the plugin.xml
that installs the reference provider
|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |